package com.briup.web.controller;

import com.briup.resuit.Result;
import com.briup.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth/role")
public class RoleController {
    @Autowired
    RoleService roleService;
    @GetMapping("/getAll")
    public Result getAllRoles() {
        return Result.success(roleService.list());
    }
}
